//模拟mock.js

import React, { FC, useEffect } from "react";
import axios from "axios";
// import "../../_mock/index";
const MockTest: FC = () => {
  useEffect(() => {
    axios.get("/api/test").then((Res: any) => {
      console.log("模拟mock", Res.data);
    });
  }, []);
  return (
    <>
      <h1>模拟mock</h1>
    </>
  );
};

export default MockTest;
